﻿using System.Web;
using System.Web.Mvc;
using WebMatrix.WebData;

namespace Masi
{
  public class FilterConfig
  {
    public static void RegisterGlobalFilters(GlobalFilterCollection filters)
    {
      WebSecurity.InitializeDatabaseConnection("DefaultConnection", "UserProfile", "UserId", "UserName", autoCreateTables: true);
      filters.Add(new HandleErrorAttribute());
    }
  }
}